<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.CreateUsedTimeTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputLabel value="#{bundle.CreateUsedTimeLabel_id}" for="id" />
                    <h:inputText id="id" value="#{usedTimeController.selected.id}" title="#{bundle.CreateUsedTimeTitle_id}" required="true" requiredMessage="#{bundle.CreateUsedTimeRequiredMessage_id}"/>
                    <h:outputLabel value="#{bundle.CreateUsedTimeLabel_dia}" for="dia" />
                    <h:inputText id="dia" value="#{usedTimeController.selected.dia}" title="#{bundle.CreateUsedTimeTitle_dia}" required="true" requiredMessage="#{bundle.CreateUsedTimeRequiredMessage_dia}">
                        <f:convertDateTime pattern="MM/dd/yyyy" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.CreateUsedTimeLabel_regIni}" for="regIni" />
                    <h:inputText id="regIni" value="#{usedTimeController.selected.regIni}" title="#{bundle.CreateUsedTimeTitle_regIni}" >
                        <f:convertDateTime pattern="HH:mm:ss" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.CreateUsedTimeLabel_regFin}" for="regFin" />
                    <h:inputText id="regFin" value="#{usedTimeController.selected.regFin}" title="#{bundle.CreateUsedTimeTitle_regFin}" >
                        <f:convertDateTime pattern="HH:mm:ss" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.CreateUsedTimeLabel_regInter}" for="regInter" />
                    <h:inputText id="regInter" value="#{usedTimeController.selected.regInter}" title="#{bundle.CreateUsedTimeTitle_regInter}" >
                        <f:convertDateTime pattern="HH:mm:ss" />
                    </h:inputText>
                    <h:outputLabel value="#{bundle.CreateUsedTimeLabel_servicio}" for="servicio" />
                    <h:inputText id="servicio" value="#{usedTimeController.selected.servicio}" title="#{bundle.CreateUsedTimeTitle_servicio}" />
                    <h:outputLabel value="#{bundle.CreateUsedTimeLabel_tarea}" for="tarea" />
                    <h:inputText id="tarea" value="#{usedTimeController.selected.tarea}" title="#{bundle.CreateUsedTimeTitle_tarea}" />
                    <h:outputLabel value="#{bundle.CreateUsedTimeLabel_ubic}" for="ubic" />
                    <h:inputText id="ubic" value="#{usedTimeController.selected.ubic}" title="#{bundle.CreateUsedTimeTitle_ubic}" />
                    <h:outputLabel value="#{bundle.CreateUsedTimeLabel_esFact}" for="esFact" />
                    <h:inputText id="esFact" value="#{usedTimeController.selected.esFact}" title="#{bundle.CreateUsedTimeTitle_esFact}" />
                    <h:outputLabel value="#{bundle.CreateUsedTimeLabel_tipoHora}" for="tipoHora" />
                    <h:inputText id="tipoHora" value="#{usedTimeController.selected.tipoHora}" title="#{bundle.CreateUsedTimeTitle_tipoHora}" />
                    <h:outputLabel value="#{bundle.CreateUsedTimeLabel_descrip}" for="descrip" />
                    <h:inputText id="descrip" value="#{usedTimeController.selected.descrip}" title="#{bundle.CreateUsedTimeTitle_descrip}" required="true" requiredMessage="#{bundle.CreateUsedTimeRequiredMessage_descrip}"/>
                    <h:outputLabel value="#{bundle.CreateUsedTimeLabel_comentario}" for="comentario" />
                    <h:inputText id="comentario" value="#{usedTimeController.selected.comentario}" title="#{bundle.CreateUsedTimeTitle_comentario}" />
                </h:panelGrid>
                <br />
                <h:commandLink action="#{usedTimeController.create}" value="#{bundle.CreateUsedTimeSaveLink}" />
                <br />
                <br />
                <h:commandLink action="#{usedTimeController.prepareList}" value="#{bundle.CreateUsedTimeShowAllLink}" immediate="true"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.CreateUsedTimeIndexLink}" action="/index" immediate="true" />
            </h:form>
        </ui:define>
    </ui:composition>

</html>
